package com.leo;

import javafx.beans.binding.IntegerBinding;
import javafx.beans.property.SimpleIntegerProperty;

/**
 * @ClassName BindingCalculateDemo
 * @Description 绑定计算
 * @Author wangss
 * @date 2020.05.29 12:08
 * @Version 1.0
 */
public class BindingCalculateDemo {

    public static void main(String[] args) {

        SimpleIntegerProperty a = new SimpleIntegerProperty(1);

        SimpleIntegerProperty b = new SimpleIntegerProperty(5);

        IntegerBinding add = a.add(6);
        System.out.println("a = " + a.get() + "  " + "add = " + add.get());
    }
}
